package com.ruoyi.cms.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.cms.mapper.CmsArticleInputFileDetailMapper;
import com.ruoyi.cms.domain.CmsArticleInputFileDetail;
import com.ruoyi.cms.service.ICmsArticleInputFileDetailService;

/**
 * 导入详情Service业务层处理
 * 
 * @author fyliu
 * @date 2025-04-14
 */
@Service
public class CmsArticleInputFileDetailServiceImpl implements ICmsArticleInputFileDetailService 
{
    @Autowired
    private CmsArticleInputFileDetailMapper cmsArticleInputFileDetailMapper;

    /**
     * 查询导入详情
     * 
     * @param id 导入详情主键
     * @return 导入详情
     */
    @Override
    public CmsArticleInputFileDetail selectCmsArticleInputFileDetailById(Long id)
    {
        return cmsArticleInputFileDetailMapper.selectCmsArticleInputFileDetailById(id);
    }

    /**
     * 查询导入详情列表
     * 
     * @param cmsArticleInputFileDetail 导入详情
     * @return 导入详情
     */
    @Override
    public List<CmsArticleInputFileDetail> selectCmsArticleInputFileDetailList(CmsArticleInputFileDetail cmsArticleInputFileDetail)
    {
        return cmsArticleInputFileDetailMapper.selectCmsArticleInputFileDetailList(cmsArticleInputFileDetail);
    }

    /**
     * 新增导入详情
     * 
     * @param cmsArticleInputFileDetail 导入详情
     * @return 结果
     */
    @Override
    public int insertCmsArticleInputFileDetail(CmsArticleInputFileDetail cmsArticleInputFileDetail)
    {
        cmsArticleInputFileDetail.setCreateTime(DateUtils.getNowDate());
        return cmsArticleInputFileDetailMapper.insertCmsArticleInputFileDetail(cmsArticleInputFileDetail);
    }

    /**
     * 修改导入详情
     * 
     * @param cmsArticleInputFileDetail 导入详情
     * @return 结果
     */
    @Override
    public int updateCmsArticleInputFileDetail(CmsArticleInputFileDetail cmsArticleInputFileDetail)
    {
        cmsArticleInputFileDetail.setUpdateTime(DateUtils.getNowDate());
        return cmsArticleInputFileDetailMapper.updateCmsArticleInputFileDetail(cmsArticleInputFileDetail);
    }

    /**
     * 批量删除导入详情
     * 
     * @param ids 需要删除的导入详情主键
     * @return 结果
     */
    @Override
    public int deleteCmsArticleInputFileDetailByIds(Long[] ids)
    {
        return cmsArticleInputFileDetailMapper.deleteCmsArticleInputFileDetailByIds(ids);
    }

    /**
     * 删除导入详情信息
     * 
     * @param id 导入详情主键
     * @return 结果
     */
    @Override
    public int deleteCmsArticleInputFileDetailById(Long id)
    {
        return cmsArticleInputFileDetailMapper.deleteCmsArticleInputFileDetailById(id);
    }
}
